#ifndef DIALOG_YP_H
#define DIALOG_YP_H

#include <QWidget>
#include "QDialog"
#include "QLabel"
#include  "fun.h"
namespace Ui {
class Dialog_yp;
}

class Dialog_yp : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_yp(test *da,QWidget *parent = nullptr);
    static int show(test *buffer,QWidget *parent = nullptr);
    ~Dialog_yp();

    QPushButton *t_btn_yes;
    QPushButton *t_btn_no;
    QPushButton *t_btn_ture;
    QWidget * t_wt_ico;
    QLabel * t_test_1;
    QLabel * t_test_2;


    enum EnmButton{
            ENM_yes_BTN = 1,
            ENM_no_BTN=2,
            ENM_true_BTN=0,
        };


private slots:
    void on_save_clicked();

    void on_sql_clicked();

private:
    Ui::Dialog_yp *ui;
    test *buffer;
};

#endif // DIALOG_YP_H
